﻿@model SportsStore.Domain.Entities.Cart

<div id="cart">
    <span class="caption">
        <b>Your cart: </b>
        @Model.Lines.Sum( item => item.Quantity ) item(s),
        @Model.ComputeTotalValue().ToString( "c" )
    </span>
    @this.Html.ActionLink( "Checkout", "Index", "Cart", 
        new { returnUrl = Request.Url.PathAndQuery }, null )
</div>